<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
    <title>LuaApp项目接口文档</title>
    <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>

<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->


<div id="main">


<!-- Menu -->

<div id="navigation">
<br/>
<h1>LuaApp</h1>

<ul>
  <li><a href="../index.html">Index</a></li>
</ul>

<h2>Contents</h2>
<ul>
<li><a href="#Methods">Methods</a></li>
</ul>


<h2>Classes</h2>
<ul class="nowrap">
  <li><a href="../classes/ActivityIndicatorView.html">ActivityIndicatorView</a></li>
  <li><a href="../classes/AlertView.html">AlertView</a></li>
  <li><a href="../classes/Application.html">Application</a></li>
  <li><a href="../classes/AudioEngine.html">AudioEngine</a></li>
  <li><a href="../classes/Button.html">Button</a></li>
  <li><a href="../classes/CaptureView.html">CaptureView</a></li>
  <li><strong>CheckBox</strong></li>
  <li><a href="../classes/ClippingView.html">ClippingView</a></li>
  <li><a href="../classes/Control.html">Control</a></li>
  <li><a href="../classes/DatePickerView.html">DatePickerView</a></li>
  <li><a href="../classes/Device.html">Device</a></li>
  <li><a href="../classes/DownloadManager.html">DownloadManager</a></li>
  <li><a href="../classes/DrawView.html">DrawView</a></li>
  <li><a href="../classes/DrawerController.html">DrawerController</a></li>
  <li><a href="../classes/FileUtils.html">FileUtils</a></li>
  <li><a href="../classes/GifView.html">GifView</a></li>
  <li><a href="../classes/HttpClient.html">HttpClient</a></li>
  <li><a href="../classes/HttpRequest.html">HttpRequest</a></li>
  <li><a href="../classes/Image.html">Image</a></li>
  <li><a href="../classes/ImageView.html">ImageView</a></li>
  <li><a href="../classes/Label.html">Label</a></li>
  <li><a href="../classes/LinearView.html">LinearView</a></li>
  <li><a href="../classes/ListView.html">ListView</a></li>
  <li><a href="../classes/ListViewCell.html">ListViewCell</a></li>
  <li><a href="../classes/NavController.html">NavController</a></li>
  <li><a href="../classes/Progress.html">Progress</a></li>
  <li><a href="../classes/Slider.html">Slider</a></li>
  <li><a href="../classes/Stepper.html">Stepper</a></li>
  <li><a href="../classes/Switch.html">Switch</a></li>
  <li><a href="../classes/TabBarController.html">TabBarController</a></li>
  <li><a href="../classes/TextField.html">TextField</a></li>
  <li><a href="../classes/TextView.html">TextView</a></li>
  <li><a href="../classes/UILoader.html">UILoader</a></li>
  <li><a href="../classes/View.html">View</a></li>
  <li><a href="../classes/ViewController.html">ViewController</a></li>
  <li><a href="../classes/WebView.html">WebView</a></li>
  <li><a href="../classes/Window.html">Window</a></li>
</ul>
<h2>Modules</h2>
<ul class="nowrap">
  <li><a href="../modules/Animation.html">Animation</a></li>
  <li><a href="../modules/class.html">class</a></li>
  <li><a href="../modules/constants.html">constants</a></li>
  <li><a href="../modules/crossapp.html">crossapp</a></li>
  <li><a href="../modules/cjson.html">cjson</a></li>
  <li><a href="../modules/mobdebug.html">mobdebug</a></li>
</ul>
<h2>Topics</h2>
<ul class="">
  <li><a href="../topics/readme.md.html">readme</a></li>
  <li><a href="../topics/layout.md.html">layout</a></li>
</ul>

</div>

<div id="content">

<h1>Class <code>CheckBox</code></h1>
<p>单,复选框控件,继承自Control</p>
<p>

</p>
    <h3>See also:</h3>
    <ul>
         <a href="../classes/Control.html#">Control</a>
    </ul>


<h2><a href="#Methods">Methods</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#CheckBox:new">CheckBox:new (type)</a></td>
	<td class="summary">创建</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:getImageStateNormal">CheckBox:getImageStateNormal ()</a></td>
	<td class="summary">获取普通状态图片</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setImageStateNormal">CheckBox:setImageStateNormal (Image)</a></td>
	<td class="summary">设置普通状态图片</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:getImageStateSelected">CheckBox:getImageStateSelected ()</a></td>
	<td class="summary">获取选中状态图片</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setImageStateSelected">CheckBox:setImageStateSelected (Image)</a></td>
	<td class="summary">设置选中状态图片</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:getTitleStateNormal">CheckBox:getTitleStateNormal ()</a></td>
	<td class="summary">获取普通状态标题</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setTitleStateNormal">CheckBox:setTitleStateNormal (title)</a></td>
	<td class="summary">设置普通状态标题</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:getTitleStateSelected">CheckBox:getTitleStateSelected ()</a></td>
	<td class="summary">获取选中状态标题</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setTitleStateSelected">CheckBox:setTitleStateSelected (title)</a></td>
	<td class="summary">设置选中状态标题</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setImageColorStateNormal">CheckBox:setImageColorStateNormal (color)</a></td>
	<td class="summary">设置普通状态图片颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setImageColorStateSelected">CheckBox:setImageColorStateSelected (color)</a></td>
	<td class="summary">设置选中状态图片颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setTitleColorStateNormal">CheckBox:setTitleColorStateNormal (color)</a></td>
	<td class="summary">设置普通状态标题颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setTitleColorStateSelected">CheckBox:setTitleColorStateSelected (color)</a></td>
	<td class="summary">设置选中状态标题颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setImageOffset">CheckBox:setImageOffset (Size)</a></td>
	<td class="summary">设置图片偏移量</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setImageSize">CheckBox:setImageSize (Size)</a></td>
	<td class="summary">设置图片尺寸</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setTitleFontName">CheckBox:setTitleFontName (fontName)</a></td>
	<td class="summary">设置标题字体</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setTitleOffset">CheckBox:setTitleOffset (Size)</a></td>
	<td class="summary">设置标题偏移</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setTitleLabelSize">CheckBox:setTitleLabelSize (Size)</a></td>
	<td class="summary">设置标题尺寸</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setTitleFontSize">CheckBox:setTitleFontSize (fontSize)</a></td>
	<td class="summary">设置标题字体大小</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setTitleBold">CheckBox:setTitleBold (bold)</a></td>
	<td class="summary">设置标题粗体</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setTitleTextAlignment">CheckBox:setTitleTextAlignment (align)</a></td>
	<td class="summary">设置标题对齐方式</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#CheckBox:setTarget">CheckBox:setTarget (callback)</a></td>
	<td class="summary">设置回调处理</td>
	</tr>
</table>

<br/>
<br/>


    <h2 class="section-header "><a name="Methods"></a>Methods</h2>

    <dl class="function">
    <dt>
    <a name = "CheckBox:new"></a>
    <strong>CheckBox:new (type)</strong>
    </dt>
    <dd>
    创建


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">type</span>
            <span class="types"><span class="type">int</span></span>
         0 方形复选框，1 圆形单选框
        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

        CheckBox
    </ol>




</dd>
    <dt>
    <a name = "CheckBox:getImageStateNormal"></a>
    <strong>CheckBox:getImageStateNormal ()</strong>
    </dt>
    <dd>
    获取普通状态图片



    <h3>Returns:</h3>
    <ol>

        Image
    </ol>




</dd>
    <dt>
    <a name = "CheckBox:setImageStateNormal"></a>
    <strong>CheckBox:setImageStateNormal (Image)</strong>
    </dt>
    <dd>
    设置普通状态图片


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">Image</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:getImageStateSelected"></a>
    <strong>CheckBox:getImageStateSelected ()</strong>
    </dt>
    <dd>
    获取选中状态图片



    <h3>Returns:</h3>
    <ol>

        Image
    </ol>




</dd>
    <dt>
    <a name = "CheckBox:setImageStateSelected"></a>
    <strong>CheckBox:setImageStateSelected (Image)</strong>
    </dt>
    <dd>
    设置选中状态图片


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">Image</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:getTitleStateNormal"></a>
    <strong>CheckBox:getTitleStateNormal ()</strong>
    </dt>
    <dd>
    获取普通状态标题



    <h3>Returns:</h3>
    <ol>

        title
    </ol>




</dd>
    <dt>
    <a name = "CheckBox:setTitleStateNormal"></a>
    <strong>CheckBox:setTitleStateNormal (title)</strong>
    </dt>
    <dd>
    设置普通状态标题


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">title</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:getTitleStateSelected"></a>
    <strong>CheckBox:getTitleStateSelected ()</strong>
    </dt>
    <dd>
    获取选中状态标题



    <h3>Returns:</h3>
    <ol>

        title
    </ol>




</dd>
    <dt>
    <a name = "CheckBox:setTitleStateSelected"></a>
    <strong>CheckBox:setTitleStateSelected (title)</strong>
    </dt>
    <dd>
    设置选中状态标题


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">title</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:setImageColorStateNormal"></a>
    <strong>CheckBox:setImageColorStateNormal (color)</strong>
    </dt>
    <dd>
    设置普通状态图片颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:setImageColorStateSelected"></a>
    <strong>CheckBox:setImageColorStateSelected (color)</strong>
    </dt>
    <dd>
    设置选中状态图片颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:setTitleColorStateNormal"></a>
    <strong>CheckBox:setTitleColorStateNormal (color)</strong>
    </dt>
    <dd>
    设置普通状态标题颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:setTitleColorStateSelected"></a>
    <strong>CheckBox:setTitleColorStateSelected (color)</strong>
    </dt>
    <dd>
    设置选中状态标题颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:setImageOffset"></a>
    <strong>CheckBox:setImageOffset (Size)</strong>
    </dt>
    <dd>
    设置图片偏移量


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">Size</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:setImageSize"></a>
    <strong>CheckBox:setImageSize (Size)</strong>
    </dt>
    <dd>
    设置图片尺寸


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">Size</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:setTitleFontName"></a>
    <strong>CheckBox:setTitleFontName (fontName)</strong>
    </dt>
    <dd>
    设置标题字体


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">fontName</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:setTitleOffset"></a>
    <strong>CheckBox:setTitleOffset (Size)</strong>
    </dt>
    <dd>
    设置标题偏移


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">Size</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:setTitleLabelSize"></a>
    <strong>CheckBox:setTitleLabelSize (Size)</strong>
    </dt>
    <dd>
    设置标题尺寸


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">Size</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:setTitleFontSize"></a>
    <strong>CheckBox:setTitleFontSize (fontSize)</strong>
    </dt>
    <dd>
    设置标题字体大小


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">fontSize</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:setTitleBold"></a>
    <strong>CheckBox:setTitleBold (bold)</strong>
    </dt>
    <dd>
    设置标题粗体


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bold</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:setTitleTextAlignment"></a>
    <strong>CheckBox:setTitleTextAlignment (align)</strong>
    </dt>
    <dd>
    设置标题对齐方式


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">align</span>
            <span class="types"><span class="type">TextAlignment</span></span>
        TextAlignmentLeft = 0,
TextAlignmentCenter = 1,
TextAlignmentRight = 2
        </li>
    </ul>





</dd>
    <dt>
    <a name = "CheckBox:setTarget"></a>
    <strong>CheckBox:setTarget (callback)</strong>
    </dt>
    <dd>
    设置回调处理


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">callback</span>
            <span class="types"><span class="type">function</span></span>



        </li>
    </ul>





</dd>
</dl>


</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-04-25 21:28:27 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
